#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------------------------------
# -- This's system Logger
# --
# ****************************
# Author: lmay.Zhou
# Blog: www.lmaye.com
# Date: 2017年8月30日 16:46:41
# ----------------------------------------------------------

import logging.config
import os


class Logger(object):
    @staticmethod
    def log():
        separator = os.path.sep;
        filePath = os.path.abspath(".") + separator + "resources" + separator + "logging.conf";
        logging.config.fileConfig(filePath);
        # create logger
        logger_name = "example01";
        return logging.getLogger(logger_name);
